package com.loozb.thread5.disruptor;

import com.lmax.disruptor.EventHandler;
import com.lmax.disruptor.WorkHandler;

/**
 * @author 龙召碧
 * @create 2018-02-09 12:56
 **/
public class Consumer2 implements EventHandler<PCData> {
    @Override
    public void onEvent(PCData pcData, long l, boolean b) throws Exception {
        System.out.println(Thread.currentThread().getId() + ":Event(2):--" + pcData.getValue()*pcData.getValue() + "--");
    }
}
